package com.xpy.entity;

import java.sql.Date;
import java.time.LocalDateTime;

public class Diary {
    Long id;
    String title;
    String content;
    Long userId;
    Date wdate;

    public Diary(Long id, String title, String content, Long userId, Date wdate) {
        this.id = id;
        this.title = title;
        this.content = content;
        this.userId = userId;
        this.wdate = wdate;
    }

    public Diary() {}

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Date getWdate() {
        return wdate;
    }

    public void setWdate(Date wdate) {
        this.wdate = wdate;
    }

    @Override
    public String toString() {
        return "Diary{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", content='" + content + '\'' +
                ", userId=" + userId +
                ", wdate=" + wdate +
                '}';
    }
}
